Least squares regression

#incomplete